<div class="header-top clearfix">
    <div class="container">
        <div class="column span-10"> 
            <div class="left">
                <span class="link"><a href="<?php echo $this->url(array('module'=>'default'), "default", true); ?>"><?php echo $this->translate('First page');?></a></span
                <span class="link"><a href="<?php echo $this->url(array('module'=>'default', 'controller'=>'tag', 'action'=>'hot'), "default", true) ?>"><?php echo $this->translate('Hot tags');?></a></a></span>
            </div>
        </div>
        <div class="column span-14 last">
            <div class="right">
            <?php if(isset($this->loginUser)){?>
                <span class="link"><?php if(isset($this->loginUser->nickname)) echo $this->loginUser->nickname;?></span>
                <span class="link"><a href="<?php echo $this->urls->logout; ?>"><?php echo $this->translate('Logout');?></a></span>
                <span class="link"><a href="<?php echo $this->url(array('module'=>'home', 'controller'=>'article', 'action'=>'my-attention'), "default", true) ?>"><?php echo $this->translate('My home');?></a></span>
                
                <?php if(isset($this->loginUser->role->roleType) && $this->loginUser->role->roleType == 'admin'){?>
                <span class="spider">｜</span>
                <span class="link"><a href="<?php echo $this->url(array('module'=>'admin'), "default", true) ?>"><?php echo $this->translate('Admin panel');?></a></span>
                <?php }?>
                
                <span class="spider">｜</span>
                <span class="link"><a href="<?php echo $this->url(array('module'=>'publish', 'controller'=>'article', 'action'=>'show-form'), "default", true) ?>"><?php echo $this->translate('Publish blog');?></a></a></span>
                <span class="link"><a href="<?php echo $this->url(array('module'=>'setup'), "default", true); ?>"><?php echo $this->translate('Setup');?></a></span>
            <?php }else{?>
                <span class="link"><a href="<?php echo $this->urls->login; ?>"><?php echo $this->translate('Login');?></a></span>
                <span class="link"><a href="<?php echo $this->urls->register; ?>"><?php echo $this->translate('Register');?></a></span>
            <?php }?>
            </div>
        </div>
   </div> 
</div>
